package entityJDBC;

public class CandidateComment {
	private int idCandidateComment;
	private String candidateComment;
	private User user;
	private Candidate candidate;

	public CandidateComment(int idCandidateComment, String candidateComment,
			User user, Candidate candidate) {
		this.idCandidateComment = idCandidateComment;
		this.candidateComment = candidateComment;
		this.user = user;
		this.candidate = candidate;
	}

	public CandidateComment(String candidateComment, User user,
			Candidate candidate) {
		this.candidateComment = candidateComment;
		this.user = user;
		this.candidate = candidate;
	}

	public int getIdCandidateComment() {
		return idCandidateComment;
	}

	public void setIdCandidateComment(int idCandidateComment) {
		this.idCandidateComment = idCandidateComment;
	}

	public String getCandidateComment() {
		return candidateComment;
	}

	public void setCandidateComment(String candidateComment) {
		this.candidateComment = candidateComment;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Candidate getCandidate() {
		return candidate;
	}

	public void setCandidate(Candidate candidate) {
		this.candidate = candidate;
	}

	public String toString() {
		return idCandidateComment + " " + candidateComment + " - "
				+ user.getLastName() + " " + user.getFirstName() + " - "
				+ candidate.getLastName() + " " + candidate.getFirstName();
	}
}
